#ifndef STREAMUTIL_HPP
#define STREAMUTIL_HPP

#include <iostream>

namespace hms {

/* for constructing error messages, this function returns the next stream token
 * that could be extracted into a std::string (i.e. whitespace-separated) and
 * then resets the stream to its previous position and a good state */
std::string unexpectedToken( std::istream& );

auto toLower( std::string& ) -> std::string&;
auto toLower( std::string&& ) -> std::string;

} // end namespace hms


#endif